package com.microservice.demo.provider.controller;

import com.einwin.framework.model.ResponseCode;
import com.einwin.framework.model.ResponseData;
import com.microservice.demo.api.DemoRemoteService;
import com.microservice.demo.api.InputParameter;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by fqiang on 4/21/17.
 */

@RestController
public class DemoController implements DemoRemoteService {

    @Override
    public ResponseData index(@RequestBody InputParameter abc) {
        System.out.println("DomeClient  provider ----- - "+abc.getId()+" "+abc.getName()+ "  "+this.getClass());
        ResponseData rd = new ResponseData(ResponseCode.SUCCESS);
        return rd;
    }
}
